package cn.wolfcode.p2p.base.query;

import cn.wolfcode.p2p.util.DateUtil;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.util.StringUtils;

import java.util.Date;

@Setter@Getter
public class RealAuthQuery extends QueryObject {

    private Integer state = -1; //审核状态,默认全部

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate; //开始时间

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate; //结束时间

    public Date getEndDate() {
        return DateUtil.getEndDate(endDate);
    }


}
